<?php
class Userimages_Data_Getcurrentimage implements Userimages_Data_Mainable{
    
    private $core_controller_selectdata;
    
    public function __construct() {
        $this->core_controller_selectdata = new Core_Controller_Selectdata;
    }
    
    public function main(array $variables = null) {
        $variables['query'] = "SELECT image_name, image_description FROM user_images WHERE id='".$variables['get']['name']."' AND username='".$_SESSION['username']."';";
        return $this->core_controller_selectdata->main($variables);
    }
}
